127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

{% for vm in rtr1_node_facts.instances %}
{% if 'student' + item == vm.tags.Student %}
{{ vm.public_ip_address }} {{ vm.tags.short_name }}
{% endif %}
{% endfor %}
{% for vm in rtr2_node_facts.instances %}
{% if 'student' + item == vm.tags.Student %}
{{ vm.public_ip_address }} {{ vm.tags.short_name }}
{% endif %}
{% endfor %}
{% for vm in rtr3_node_facts.instances %}
{% if 'student' + item == vm.tags.Student %}
{{ vm.public_ip_address }} {{ vm.tags.short_name }}
{% endif %}
{% endfor %}
{% for vm in rtr4_node_facts.instances %}
{% if 'student' + item == vm.tags.Student %}
{{ vm.public_ip_address }} {{ vm.tags.short_name }}
{% endif %}
{% endfor %}
{% for vm in ansible_node_facts.instances %}
{% if 'student' + item == vm.tags.Student %}
{{ vm.private_ip_address }} {{vm.tags.Student}}.{{ec2_name_prefix|lower}}.{{workshop_dns_zone}} {{ vm.tags.short_name }} {{ vm.tags.short_name }}.local
{% endif %}
{% endfor %}
